package com.broadengate.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Card entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Card implements java.io.Serializable {

	// Fields

	private Integer id;
	private Customer customer;
	private Bank bank;
	private String cardNo;
	private String password;
	private Float rmbbalance;
	private Float euroBalance;
	private Float dollarBalance;
	private Set transfersForDestinedCardId = new HashSet(0);
	private Set withdraws = new HashSet(0);
	private Set deposits = new HashSet(0);
	private Set transfersForSourceCardId = new HashSet(0);

	// Constructors

	/** default constructor */
	public Card() {
	}

	/** minimal constructor */
	public Card(Customer customer, Bank bank, String cardNo, String password,
			Float rmbbalance, Float euroBalance, Float dollarBalance) {
		this.customer = customer;
		this.bank = bank;
		this.cardNo = cardNo;
		this.password = password;
		this.rmbbalance = rmbbalance;
		this.euroBalance = euroBalance;
		this.dollarBalance = dollarBalance;
	}

	/** full constructor */
	public Card(Customer customer, Bank bank, String cardNo, String password,
			Float rmbbalance, Float euroBalance, Float dollarBalance,
			Set transfersForDestinedCardId, Set withdraws, Set deposits,
			Set transfersForSourceCardId) {
		this.customer = customer;
		this.bank = bank;
		this.cardNo = cardNo;
		this.password = password;
		this.rmbbalance = rmbbalance;
		this.euroBalance = euroBalance;
		this.dollarBalance = dollarBalance;
		this.transfersForDestinedCardId = transfersForDestinedCardId;
		this.withdraws = withdraws;
		this.deposits = deposits;
		this.transfersForSourceCardId = transfersForSourceCardId;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Bank getBank() {
		return this.bank;
	}

	public void setBank(Bank bank) {
		this.bank = bank;
	}

	public String getCardNo() {
		return this.cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Float getRmbbalance() {
		return this.rmbbalance;
	}

	public void setRmbbalance(Float rmbbalance) {
		this.rmbbalance = rmbbalance;
	}

	public Float getEuroBalance() {
		return this.euroBalance;
	}

	public void setEuroBalance(Float euroBalance) {
		this.euroBalance = euroBalance;
	}

	public Float getDollarBalance() {
		return this.dollarBalance;
	}

	public void setDollarBalance(Float dollarBalance) {
		this.dollarBalance = dollarBalance;
	}

	public Set getTransfersForDestinedCardId() {
		return this.transfersForDestinedCardId;
	}

	public void setTransfersForDestinedCardId(Set transfersForDestinedCardId) {
		this.transfersForDestinedCardId = transfersForDestinedCardId;
	}

	public Set getWithdraws() {
		return this.withdraws;
	}

	public void setWithdraws(Set withdraws) {
		this.withdraws = withdraws;
	}

	public Set getDeposits() {
		return this.deposits;
	}

	public void setDeposits(Set deposits) {
		this.deposits = deposits;
	}

	public Set getTransfersForSourceCardId() {
		return this.transfersForSourceCardId;
	}

	public void setTransfersForSourceCardId(Set transfersForSourceCardId) {
		this.transfersForSourceCardId = transfersForSourceCardId;
	}

}